﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VX.DBTransfer.Model;

namespace VX.DBTransfer.DAL.Common
{
    public class CommonDataAccess
    {
        public bool IsRightDBConfig(DBConfigModel model)
        {
            bool result = false;
            using (DALBase db = new DALBase(model.ConnString))
            {
                if (db.DBInstance != null && db.IsOpen)
                {
                    result = true;
                }
            }
            return result;
        }
    }
}
